home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 2 / BBS in a box - Trilogy II.iso / Files / Hyper / G / Get⁄SetModDate 1.0 / Get_SetModDate 1.0 / cards.xml < prev    next >
Encoding:
Text File  |  1992-08-19  |  5.8 KB  |  179 lines

  1. card_2839.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>2839</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_4303.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2788</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_3217.css" />
  13.     <part>
  14.         <id>9</id>
  15.         <type>field</type>
  16.         <visible> <true /> </visible>
  17.         <dontWrap> <false /> </dontWrap>
  18.         <dontSearch> <false /> </dontSearch>
  19.         <sharedText> <false /> </sharedText>
  20.         <fixedLineHeight> <false /> </fixedLineHeight>
  21.         <autoTab> <false /> </autoTab>
  22.         <lockText> <true /> </lockText>
  23.         <rect>
  24.             <left>1</left>
  25.             <top>86</top>
  26.             <right>511</right>
  27.             <bottom>309</bottom>
  28.         </rect>
  29.         <style>transparent</style>
  30.         <autoSelect> <false /> </autoSelect>
  31.         <showLines> <false /> </showLines>
  32.         <wideMargins> <false /> </wideMargins>
  33.         <multipleLines> <false /> </multipleLines>
  34.         <reservedFamily> 0 </reservedFamily>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>left</textAlign>
  38.         <font>Monaco</font>
  39.         <textSize>9</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <textHeight>12</textHeight>
  42.         <name></name>
  43.         <script></script>
  44.     </part>
  45.     <part>
  46.         <id>10</id>
  47.         <type>button</type>
  48.         <visible> <true /> </visible>
  49.         <reserved5> 0 </reserved5>
  50.         <reserved4> 0 </reserved4>
  51.         <reserved3> 0 </reserved3>
  52.         <reserved2> 0 </reserved2>
  53.         <reserved1> 0 </reserved1>
  54.         <enabled> <true /> </enabled>
  55.         <rect>
  56.             <left>2</left>
  57.             <top>54</top>
  58.             <right>114</right>
  59.             <bottom>76</bottom>
  60.         </rect>
  61.         <style>rectangle</style>
  62.         <showName> <true /> </showName>
  63.         <highlight> <false /> </highlight>
  64.         <autoHighlight> <true /> </autoHighlight>
  65.         <sharedHighlight> <true /> </sharedHighlight>
  66.         <family>0</family>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>0</icon>
  69.         <textAlign>center</textAlign>
  70.         <font>Chicago</font>
  71.         <textSize>12</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <name>GetModDate</name>
  74.         <script>on mouseUp
  75. answer file "Choose a file to examine:"
  76. if it = "" then exit mouseup
  77. put GetModDate(it) into modDate
  78. convert modDate to long date and time
  79. answer modDate
  80. end mouseUp</script>
  81.     </part>
  82.     <part>
  83.         <id>16</id>
  84.         <type>button</type>
  85.         <visible> <true /> </visible>
  86.         <reserved5> 0 </reserved5>
  87.         <reserved4> 0 </reserved4>
  88.         <reserved3> 0 </reserved3>
  89.         <reserved2> 0 </reserved2>
  90.         <reserved1> 0 </reserved1>
  91.         <enabled> <true /> </enabled>
  92.         <rect>
  93.             <left>473</left>
  94.             <top>51</top>
  95.             <right>511</right>
  96.             <bottom>84</bottom>
  97.         </rect>
  98.         <style>transparent</style>
  99.         <showName> <false /> </showName>
  100.         <highlight> <false /> </highlight>
  101.         <autoHighlight> <true /> </autoHighlight>
  102.         <sharedHighlight> <true /> </sharedHighlight>
  103.         <family>0</family>
  104.         <titleWidth>0</titleWidth>
  105.         <icon>15664</icon>
  106.         <textAlign>center</textAlign>
  107.         <font>Chicago</font>
  108.         <textSize>12</textSize>
  109.         <textStyle>plain</textStyle>
  110.         <name>Home</name>
  111.         <script>on mouseUp
  112. visual dissolve to black
  113. visual dissolve to white
  114. visual dissolve to black
  115. visual dissolve
  116. go home
  117. end mouseUp
  118. </script>
  119.     </part>
  120.     <part>
  121.         <id>17</id>
  122.         <type>button</type>
  123.         <visible> <true /> </visible>
  124.         <reserved5> 0 </reserved5>
  125.         <reserved4> 0 </reserved4>
  126.         <reserved3> 0 </reserved3>
  127.         <reserved2> 0 </reserved2>
  128.         <reserved1> 0 </reserved1>
  129.         <enabled> <true /> </enabled>
  130.         <rect>
  131.             <left>475</left>
  132.             <top>22</top>
  133.             <right>512</right>
  134.             <bottom>50</bottom>
  135.         </rect>
  136.         <style>transparent</style>
  137.         <showName> <false /> </showName>
  138.         <highlight> <true /> </highlight>
  139.         <autoHighlight> <false /> </autoHighlight>
  140.         <sharedHighlight> <true /> </sharedHighlight>
  141.         <family>0</family>
  142.         <titleWidth>0</titleWidth>
  143.         <icon>13510</icon>
  144.         <textAlign>center</textAlign>
  145.         <font>Chicago</font>
  146.         <textSize>12</textSize>
  147.         <textStyle>plain</textStyle>
  148.         <name>Jeff</name>
  149.         <script></script>
  150.     </part>
  151.     <part>
  152.         <id>18</id>
  153.         <type>button</type>
  154.         <visible> <true /> </visible>
  155.         <reserved5> 0 </reserved5>
  156.         <reserved4> 0 </reserved4>
  157.         <reserved3> 0 </reserved3>
  158.         <reserved2> 0 </reserved2>
  159.         <reserved1> 0 </reserved1>
  160.         <enabled> <true /> </enabled>
  161.         <rect>
  162.             <left>116</left>
  163.             <top>54</top>
  164.             <right>228</right>
  165.             <bottom>76</bottom>
  166.         </rect>
  167.         <style>rectangle</style>
  168.         <showName> <true /> </showName>
  169.         <highlight> <false /> </highlight>
  170.         <autoHighlight> <true /> </autoHighlight>
  171.         <sharedHighlight> <true /> </sharedHighlight>
  172.         <family>0</family>
  173.         <titleWidth>0</titleWidth>
  174.         <icon>0</icon>
  175.         <textAlign>center</textAlign>
  176.         <font>Chicago</font>
  177.         <textSize>12</textSize>
  178.         <textStyle>plain</textStyle>
  179.         <name>SetModDate</name>
  180.         <script>on mouseUp
  181. put the seconds into newModDate
  182. put newmoddate into moddate
  183. convert moddate to long date and time
  184. answer file "Choose a file to set Modification Date:"
  185. if it = "" then exit mouseup
  186. setModDate it,newModDate
  187. answer "Modification date set to" && moddate & "."
  188. end mouseUp</script>
  189.     </part>
  190.     <content>
  191.         <layer>card</layer>
  192.         <id>9</id>
  193.         <text>GetModDate takes one parameter, the pathname of the file to examine. It returns the time in seconds which can be converted to a date. SetModDate takes two parameters, the pathname of the file to work on, and the datetime in seconds. Click on and/or examine the scripts of the buttons above to see how they work!
  194.  
  195. A small shareware fee of $5 is requested if you use these externals for anything besides personal use.
  196.  
  197. If you have comments, questions, or suggestions, you can contact me in any of the following ways:
  198.  
  199.      America Online: J5rson                  AppleLink: ALL.AMERICAN
  200.      CompuServe:     76675,1772              GEnie:     J5rson
  201.      Internet:       j5rson@aol.com          Telephone: 616.949.0346
  202.  
  203.      U. S. Mail:           Jeff Iverson
  204.                            3841 Whispering Way Dr. SE #101
  205.                            Grand Rapids MI  49546-5849
  206. </text>
  207.     </content>
  208.     <name></name>
  209.     <script></script>
  210. </card>
  211.  
  212.  
  213.